package pl.register.android.database.dao;

import pl.register.android.course.Course;
import pl.register.android.group.StudentsGroup;
import pl.register.android.student.Student;
import pl.register.android.year.Year;

import java.util.List;

/**
 * @author Mateusz Strzelecki
 * @since 2013-04-26
 */
public interface StudentsDao {

    Student findStudentsBy(Long studentId, Course course);

    List<Student> findStudentsBy(StudentsGroup studentsGroup, Course course);

    List<Student> findStudentsBy(Year year, Course course);

    List<Student> findStudentsWithoutGroupBy(Year year, Course course);

    Student save(Student student, Year year, Course course);

    Student update(Student student, Course course);

    void deleteFrom(Student student, Year year);

}
